package com.peanut.em;

public enum ResultEnum {
    SUCCESS(10000, "操作成功"),
    ERROR(9999, "操作失败"),
    LOGIN_ERROR(7777, "账号或密码错误"),
    LOGIN_UNKNOWNACCOUN(6666, "账号异常或不存在"),
    LOGIN_NO_EXAMIN(5555, "未审核"),
    ARGS_FAULT(2222, "节点嵌套"),
    CODE_UNDEFINED(1111, "验证码不存在或失效"),
    CODE_FAULT(1000, "验证码错误"),
    SALEOVER(10001, "商品已售罄"),
    REQUEST_FALLBACK(10007, "被限流了"),
    NO_LOGIN(10009, "未登录"),
<<<<<<< HEAD
=======
    FEIGN_FALLBACK(10008, "openFeign调用失败"),
    NO_NULL(10010,"当前数据有下级");
=======
<<<<<<< HEAD
>>>>>>> 3c39e7d169d3c7b2d8ccca4ccdc26fbaa7e9eb12
    FEIGN_FALLBACK(10008, "openFeign调用失败"),
    NO_NULL(10010,"当前数据有下级"),
    PHONE_NULL(1009,"手机号为空"),
    CODE_NULL(1010,"验证码为空"),
    DATA_NULL(1011,"查询数据是否为空"),
    REGISTERED(1012,"判断账户是否已经注册");
<<<<<<< HEAD
=======

<<<<<<< HEAD
=======
=======
    FEIGN_FALLBACK(10008, "openFeign调用失败");
>>>>>>> bd9b84592b938904b3962cf70ef35aa4d0f3ef2a
>>>>>>> 850dbdc0f578bd7a308e6c77316dcc1a255ceb26
>>>>>>> af36de3a3408c97748dacbf51f472ea075c7bd3e
>>>>>>> 3c39e7d169d3c7b2d8ccca4ccdc26fbaa7e9eb12
    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
